package com.gdcp.service;

import com.gdcp.beans.User;
import com.gdcp.util.ImageDto;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.Map;

public interface UserService {

    Map<String, Object> login(String username, String password);

    Map<String, Object> register(User user);

    Map<String,Object> updateInformation(User user);

    Map<String,Object> updateHeadPortrait(User user, ImageDto image);

    User getInformation(Integer userId);

    Map<String,Object> findPageBreakByCondition(Map<String, Object> param, Integer shop_id);

    Map<String,Object> removeByPrimaryKey(Integer[] ids);

    Map<String,Object> searchInformation(Map<String, Object> param);

    int updateShopId(Integer shop_id,Integer user_id);

    @PreAuthorize("hasAuthority('ROLE_ADMIN')")
    Map<String, Object> findAll(Map<String, Object> model);

    Map<String, Object> searchInformationByShopId(Map<String, Object> model, Integer shop_id);
}
